const app = getApp({
  allowDefault: true
});
Page({
  data: {
    shareEmployeeId: ''
  },
  onLoad(options) {
    this.setData({
      shareEmployeeId: xhs.getStorageSync('user').isEmployee ? xhs.getStorageSync('user').id : options.shareEmployeeId || ''
    });
  },
  onReachBottom() {},
  onShareAppMessage(options) {
    let shareEmployeeId = this.data.shareEmployeeId,
      shareUserId = xhs.getStorageSync('user').id;
    let shareInfo = {
      title: '商品列表',
      path: `/pages/TabBar/Goods/index?shareUserId=${shareUserId}&shareEmployeeId=${shareEmployeeId}`
    };
    return app.parseAuthWechatId(shareInfo);
  }
});